package com.stu.entity.permission;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.stu.entity.base.BaseEntity;

/**
 * 部门 实体类
 * @author lijian
 *
 */

@Entity
@Table(name = "PERMISSION_DEPARTMENT")
public class PermissionDepartment extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 部门名称
	 */
	private String name;
	
	/**
	 * 一把手 （部门老大）
	 */
	private PermissionUser firstLeader;
	/**
	 * 二把手
	 */
	private PermissionUser secondLeader;
	
	/**
	 * 部门成员
	 */
	private List<PermissionUser>members=new ArrayList<PermissionUser>();

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public PermissionUser getFirstLeader() {
		return firstLeader;
	}

	public void setFirstLeader(PermissionUser firstLeader) {
		this.firstLeader = firstLeader;
	}

	public PermissionUser getSecondLeader() {
		return secondLeader;
	}

	public void setSecondLeader(PermissionUser secondLeader) {
		this.secondLeader = secondLeader;
	}

	public List<PermissionUser> getMembers() {
		return members;
	}

	public void setMembers(List<PermissionUser> members) {
		this.members = members;
	}

	public PermissionDepartment() {
		super();
	}

	public PermissionDepartment(String uuid) {
		super(uuid);
	}

	@Override
	public String toString() {
		return "PermissionDepartment [name=" + name + ", firstLeader=" + firstLeader + ", secondLeader=" + secondLeader + ", members=" + members + "]";
	}
	
	
	

}
